package com.el.service;

import com.el.dao.BookDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

@Service
public class BookService {
    @Qualifier("bookDao2")
    @Autowired(required=false)
    private BookDao bookDao2;

    public void print(){
        System.out.println(bookDao2);
    }

    @Override
    public String toString() {
        return "BookService [bookDao=" + bookDao2 + "]";
    }

}
